package com.ruoyi.duty.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.DeptName;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 信息发布视图对象 duty_xxfb
 *
 * @author xiaohao
 * @date 2023-01-19
 */
@Data
@ExcelIgnoreUnannotated
public class DutyXxfbVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long xxfbId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String theme;

    /**
     * 信息类型
     */
    @ExcelProperty(value = "信息类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "xxlx")
    private String type;

    /**
     * 发送地区Id
     */
    @ExcelProperty(value = "发送地区")
    private Long sendArea;

    @DeptName
    public Object getSendAreaName() {
        return sendArea;
    }

    /**
     * 发送时间
     */
    @ExcelProperty(value = "发送时间")
    private Date sendTime;

    /**
     * 信息内容
     */
    @ExcelProperty(value = "信息内容")
    private String content;

    /**
     * 上传图片
     */
    @ExcelProperty(value = "上传图片")
    private String images;


}
